<template>
	<web-view :src="state.url"></web-view>
</template>

<script setup>
import { reactive } from "vue";
import config from '@/utils/config.js'
import { useUserinfo } from '@/store/userInfo.js'
import { onLoad } from '@dcloudio/uni-app'
const userinfo = useUserinfo()
	const state = reactive({
		url: ''
	})
	onLoad(option => {
		state.url = `${config.webview}?token=${userinfo.token}&id=${option.id}`
	})
</script>

<style lang="scss" scoped>
.content {
	padding: 30rpx;
}
</style>
